<?php
/* --------------------------------------------------------------
   gm_gprint_header_css.php 2009-11-13 mb
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2009 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
?><?php 

if(substr_count($t_gm_script_name, 'product_info.php') > 0)
{
	$coo_gm_gprint_product_manager = new GMGPrintProductManager();
	
	$t_gm_gprint_surfaces_groups_id = $coo_gm_gprint_product_manager->get_surfaces_groups_id((int)$product->data['products_id']);
	
	if($t_gm_gprint_surfaces_groups_id === false)
	{
		$t_gm_gprint_surfaces_groups_id_parameter = '';
	}
	else
	{
		$t_gm_gprint_surfaces_groups_id_parameter = '&amp;id=' . $t_gm_gprint_surfaces_groups_id;
		echo '<link type="text/css" rel="stylesheet" href="templates/' . CURRENT_TEMPLATE . '/gm_gprint.css" />';
	}
}

?>